import request from "@/utils/request";

// 查询紫外线灯强度监测记录列表
export function listLightMonitor(query) {
  return request({
    url: "/zp/lightMonitor/list",
    method: "get",
    params: query,
  });
}

// 紫外线灯强度监测-未处理数量
export function unMonitorNum(query) {
  return request({
    url: "/zp/lightMonitor/unMonitorNum",
    method: "get",
    params: query,
  });
}

// 查询紫外线灯强度监测记录详细
export function getLightMonitor(id) {
  return request({
    url: "/medical/lightMonitor/" + id,
    method: "get",
  });
}

// 新增紫外线灯强度监测记录
export function addLightMonitor(data) {
  return request({
    url: "/zp/lightMonitor",
    method: "post",
    data: data,
  });
}

// 修改紫外线灯强度监测记录
export function updateLightMonitor(data) {
  return request({
    url: "/medical/lightMonitor",
    method: "put",
    data: data,
  });
}

// 删除紫外线灯强度监测记录
export function delLightMonitor(id) {
  return request({
    url: "/medical/lightMonitor/" + id,
    method: "delete",
  });
}
